package com.foreverwin.jzymes.production.inspect.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.foreverwin.jzymes.production.inspect.mapper.InspectAlarmLogMapper;
import com.foreverwin.jzymes.production.inspect.domain.InspectAlarmLog;
import com.foreverwin.jzymes.production.inspect.service.IInspectAlarmLogService;

/**
 * 全检报警记录 服务层实现
 * 
 * @author ervin
 * @date 2019-07-16
 */
@Service
public class InspectAlarmLogServiceImpl implements IInspectAlarmLogService
{
	@Autowired
	private InspectAlarmLogMapper inspectAlarmLogMapper;

	/**
     * 查询全检报警记录信息
     * 
     * @param handle 全检报警记录ID
     * @return 全检报警记录信息
     */
    @Override
	public InspectAlarmLog selectInspectAlarmLogById(String handle)
	{
	    return inspectAlarmLogMapper.selectInspectAlarmLogById(handle);
	}
	
	/**
     * 查询全检报警记录列表
     * 
     * @param inspectAlarmLog 全检报警记录信息
     * @return 全检报警记录集合
     */
	@Override
	public List<InspectAlarmLog> selectInspectAlarmLogList(InspectAlarmLog inspectAlarmLog)
	{
	    return inspectAlarmLogMapper.selectInspectAlarmLogList(inspectAlarmLog);
	}
	
    /**
     * 新增全检报警记录
     * 
     * @param inspectAlarmLog 全检报警记录信息
     * @return 结果
     */
	@Override
	public int insertInspectAlarmLog(InspectAlarmLog inspectAlarmLog)
	{
	    return inspectAlarmLogMapper.insertInspectAlarmLog(inspectAlarmLog);
	}
	
	/**
     * 修改全检报警记录
     * 
     * @param inspectAlarmLog 全检报警记录信息
     * @return 结果
     */
	@Override
	public int updateInspectAlarmLog(InspectAlarmLog inspectAlarmLog)
	{
	    return inspectAlarmLogMapper.updateInspectAlarmLog(inspectAlarmLog);
	}

	/**
     * 删除全检报警记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteInspectAlarmLogByIds(String ids)
	{
		return inspectAlarmLogMapper.deleteInspectAlarmLogByIds(ids.split(","));
	}
	
}
